package com.boot.unity.api.runner;

import com.boot.unity.api.constants.Constants;
//import com.boot.unity.api.modules.cert.dao.CertDao;
//import com.boot.unity.api.modules.cert.entity.Cert;
import lombok.AllArgsConstructor;
import org.apache.commons.collections4.CollectionUtils;
import org.springframework.boot.CommandLineRunner;
//import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@AllArgsConstructor
public class UnityRunner implements CommandLineRunner {
//    private final RedisTemplate<String, Cert> redisTemplate;
//    private final CertDao certDao;

    @Override
    public void run(String... args) throws Exception {
        /*List<Cert> certList = certDao.list();
        if (CollectionUtils.isNotEmpty(certList)){
//            certList.forEach(cert -> redisTemplate.boundValueOps(Constants.APPID_KEY +cert.getAppId()).set(cert));
        }*/
    }
}
